package com.jhte.scheduleJob.entity;

import com.jhte.scheduleJob.util.ScheduleConstant;

import java.io.Serializable;

/**
 * @author wuchun
 * @description 定时任务日志实体类
 * @create 2018/1/30 16:48
 */
public class QuartzLog implements Serializable {

    private static final long serialVersionUID = 5472048072265937930L;

    private Integer id;
    /**
     * 任务名称
     */
    private String jobName;
    /**
     * 任务分组
     */
    private String jobGroup;
    /**
     * 任务执行类型  planned-计划内，unplanned-计划外
     */
    private String execType = ScheduleConstant.EXECTYPE_PLANNED;
    /**
     * 任务执行情况 success-成功，fail-失败
     */
    private String execStatus = ScheduleConstant.EXECSTATUS_SUCCESS;
    /**
     * 开始时间
     */
    private String startTime;
    /**
     * 结束时间
     */
    private String endTime;
    /**
     * 任务执行耗时
     */
    private Long takesTime;
    /**
     * 备注（异常信息）
     */
    private String message;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setTakesTime(Long takesTime) {
        this.takesTime = takesTime;
    }

    public Long getTakesTime() {
        return takesTime;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }

    public String getExecType() {
        return execType;
    }

    public void setExecType(String execType) {
        this.execType = execType;
    }

    public String getExecStatus() {
        return execStatus;
    }

    public void setExecStatus(String execStatus) {
        this.execStatus = execStatus;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
